import Vue from 'vue'
import VueRouter from 'vue-router'
import ceshi from '../components/ceshi.vue'
import home from '../components/home/home.vue'
import login from '../components/common/login/login.vue'

Vue.use(VueRouter)

  const routes = [
    {
      path:"/ceshi",
      component:ceshi
    },
    {
      path:"/",
      redirect: "/home"
    },
    {
      path:"/login",
      component:login
    },
    {
      path:"/home",
      component:home,
      // children:[
      //   {
      //     path:'/homep',
      //     component:homep
      //   },
      //   {
      //     path:'/homem',
      //     component:homem
      //   },
      // ]
    },
   
 
  
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
